/*
 * Class:CalendarButton
 * 
 * Description: New type of button that has a date parameter
 * 
 * Version:
 * 1.0 -Francois-Xavier Frenette - 16-12-2011
 *  - Class creation
 * 
 */
package calendarInterface2;


import java.sql.Timestamp;
import java.util.List;

import javax.swing.JButton;

import calendarEventManager.CEMEvent;

@SuppressWarnings("serial")
public class CalendarButton extends JButton{
	
	private Timestamp date;
	private List<CEMEvent> events = null;

	public CalendarButton(Timestamp date) {
		super();
		this.date = date;
	}
	
	/**
	 * @return the date
	 */
	public Timestamp getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(Timestamp date) {
		this.date = date;
	}

	/**
	 * @return the events
	 */
	public List<CEMEvent> getEvents() {
		return events;
	}

	/**
	 * @param events the events to set
	 */
	public void setEvents(List<CEMEvent> events) {
		this.events = events;
	}
}
